<!DOCTYPE html>
<html>
<head th:replace="layouts::header">
</head>

<body>

<nav th:replace="layouts::navbar"></nav>
<div>
    <h3>&nbsp</h3>
</div>
<div class="distance">
   <h3>学生目录</h3>
    <hr>
    <a th:href="@{/students/new}">新增学生</a>
    <br>
    <table>
        <thead>
        <tr>
            <th>姓名</th>
            <th>学号</th>
            <th>学院</th>
<!--            <th>动作</th>-->
        </tr>
        </thead>
        <tbody>
        <tr th:each="aStudent : ${students}">
            <td th:text="${aStudent.name}"></td>
            <td th:text="${aStudent.numberId}"></td>
            <td th:text="${aStudent.college}"></td>

<!--            <td><a th:href="@{/students/update(id=${aStudent.studenId})}" class="btn btn-info btn-sm">更新</a>-->

<!--                <a th:href="@{/students/delete(id=${aStudent.studenId})}"-->
<!--                        class="btn btn-danger btn-sm"-->
<!--                        onclick="if (!(confirm('你确定归还这本书吗'))) return false"-->
<!--                >还书</a>-->
<!--            </td>-->

        </tr>
        </tbody>
    </table>
</div>
</body>
</html>